﻿using System;
using System.Windows.Forms;
using Presentation;
using Infrastructure;

namespace WindowsFormsApplication
{
    public partial class Form1 : Form, IView
    {
        public Form1()
        {
            InitializeComponent();
        }
        public event Action OnFindClick;
        public event Action OnOpenLogClick;

        public string mas
        {
            get
            {
                return textBox1.Text;
            }
            set
            {
                textBox1.Text = value;
            }
        }

        public string sortedMas
        {
            get
            {
                return textBox4.Text;
            }
            set
            {
                textBox4.Text = value;
            }
        }

        public string pos
        {
            get
            {
                return textBox3.Text;
            }
            set
            {
                textBox3.Text = value;
            }
        }


        public string requiredElement
        {
            get
            {
                return textBox2.Text;
            }
            set
            {
                textBox2.Text = value;
            }
        }

        public string logging
        {
            get
            {
                return textBox5.Text;
            }
            set
            {
                textBox5.Text = value;
            }
        }
        public string error
        {
            get
            {
                return label6.Text;
            }
            set
            {
                label6.Text = value;
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            OnFindClick();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            OnOpenLogClick();
        }

    }
}
